package com.itcast.springboot.waste_recovery.service.impl;

import com.itcast.springboot.waste_recovery.domain.Feedback;
import com.itcast.springboot.waste_recovery.mapper.FeedbackMapper;
import com.itcast.springboot.waste_recovery.service.FeedbackService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 用户反馈 服务实现类
 * </p>
 *
 * @author 小破烂
 * @since 2020-08-19
 */
@Service(value = "feedbackServiceImpl")
public class FeedbackServiceImpl extends ServiceImpl<FeedbackMapper, Feedback> implements FeedbackService {

    @Resource
    FeedbackMapper feedbackMapper;

    @Override
    public Integer insertFeedback(Feedback feedback) {

        Integer result = feedbackMapper.insert(feedback);
        return result;
    }
}
